unregister events on shutdown