Fixes #14.  If open fails, the heartbeat function calls SerialPort::reinit now.