Added termios structure checking while port opening, and "Permission denied" exception support