Adding service removal work and deregister service functionality.