Disable prompt and events upon disconnection.