Fixed spindle/coolant/dwell state check.