Make a (sort of halfhearted) attempt to recover from serial failures.

If we get an exception when sending, try closing and reopening the port
and then sending again. I reckon this should actually deal with a good
proportion of the failure modes I've seen IRL.