expose connection status, and and close the connection with close()
fix dumb mistakes
document new close, isOpen, isClosed
Merge pull request #11 from dominictarr/master

add `close()` (and `isClosed()` and `isOpen()`)