Make dummyActuator window properly close on quit; catch various error
conditions