Fixing #22. A failed Connect() does not raise an error.