How emulate cable disconnection in module?

Maybe this thread could help you