deliver the promise & fire an event on exceptions
allow graceful quitting
SSL support
Merge pull request #29 from dlowe/master

A few small enhancements...