Added a line to close the serial port on quit.