Attempted fix to the HardwareIO bug (will flush after writing and will wait to finish writing)