/// <summary> /// Unsubscribes from updates, sends a request to disable the robot, and terminates the process. /// </summary> public void Close() { robot.UnsubscribeFromServerUpdate(); robot.UnsubscribeFromRobotStatus(); OnDisable(); Environment.Exit(0); }