to switch off the motor