Updated for new libkovanserial error returns. Catch EIO and renew port.
Merged Josh and I's changes