Add callback on error while opening the port.

Missing error handling for missing /dev port.
Merge pull request #1 from DomiR/master

Add callback on error while opening the port.