motor add safe shutdown