It would be nice if `connect()` had a return value to check whether the connection was successfully established.