Cleaner serial port shutdown.

Disabling blocking when opening and closing seems to really help on OS
X.