Changed SerialConnectionFactory.connect to raise an exception if it fails