How emulate cable disconnection in module?

This is a possible solution to my problem in a different way.