A method is provided for operating a power tool having a motor powered by a battery. The method includes: delivering power from the battery to the motor in accordance with an operator input; detecting a condition of the power tool indicating a shutdown of the power is imminent; and fading the power delivered from the battery to the motor, in response to the detected condition, through the use of a controller residing in the power tool.