fix serial port reopen when unexpectedly closed