Just quit when the connection is closed