Implemented the unregister request for the registry service.