using event to shut down slavers