Changed the way the modules are disconnected from their parent.