Closes the serial port and the IR port, and clears the input buffer and any error messages for KERMIT.