Was modified condition of calling 'on_disconnect' callback