cocaine/cocaine-core — pull request #79 by noxiouz (2014-04-08 18:06:30+00:00)
Title: Give an opportunity to detect disconnection of clients from Service

Neither actor_t::write nor actor_t::error throws an exception if client has already disconnected. So it's impossible to use any kind of resources which should be disposed after client disconnects (i.e. timers in chrono).