make sure robot is stopped when shutting down
fix typo