Added connection timeouts on serial ports.