added printouts when shutting down hw control loop