Wrapped serial code in try .. except
Update serial port