Fix glitch with `ConnectDetach()` in simulation
If `ConnectDetach()` gets called in the simulation it cause a 100% CPU usage...