Prevent "Connection closed" message box from appearing after the