Correctly handle calls to stopDeviceIO when device is already stopped
Don't write digital output when the device isn't running