Improved handling of internal UART error conditions