only calling the System.Quit when disconnecting