fixed an issue with core.abstract_session::flush_guard (always setting _going_to_disconnect even when no packet is sent)