Sends quit to end connections when disconnecting.