Implement sleeping/waking clients.