Connection port is now coerced to an integer and raise exception if it could not.