add deregister hook for cleanup