Fix bug with disown.

In on_disown callback sometimes logging message raises Exception
and event loop doesn't stop, so not all disowned slaves will stop.