Link to the API documentation

[ci skip]
Fixed an issue that made Client#close fail for the wrong reason