quit if disconnected