Exit command loop with rospy shutdown and have less instance variables.