used quit instead of disconnect (quit calls connection.disconnect)