Adding call to unregister all registered events when unregistering a route