implemented RemoteLeave command