currently the events fire, but they do not allow the shutdown to halt until cleanup is complete, removing files, sockets etc