Wait for client to stop