Added 'connected' attribute to SerialPort.