Added test for early execution of @onExit
Merge pull request #30 from Ahti/master

Test for early execution of @onExit blocks