add service unregister logic