Exposed the close reason in the onclose callback.
Merge pull request #2 from Sumo-MBryant/close-reason

Exposed the close reason to the client.