Timeout reading from uart.