code: private void unregisterRemoteCommands()
     {
        if (rpcService != null)
        {
           rpcService.unregisterCommand(suspend);
           rpcService.unregisterCommand(resume);
           rpcService.unregisterCommand(requestForResponsibleForResuming);
        }
        
     }
docs: Unregister remote commands.