Making the robot safe