async_network: release resource before event_add