Add callback on error while opening the port.

Missing error handling for missing /dev port.