Added exceptions for Serial port and Ctrl C.