Fixing erasing code
Unsubscribe modules on disconnect