Merge pull request #26 from wpreul/master

Failures now accounted for in exit code
Merge pull request #27 from wpreul/master

Cleanup of domain listeners and better isDone error handling
Adding global leak checking