Addition of `close()` method

Couldn't find any reference to closing a connection in the docs so have added it to both the top example and a section headed "Disconnecting".