Fixed issue #8; added additional exceptions on other serial port methods
such as write(), flush(), etc.