added lifecycle hooks and support for simplecov
Merge pull request #5 from Shopify/add_before_exit_hook

added lifecycle hooks and support for simplecov