Move event loop to client.