Make sure that after is run on failing tests (fixes #159)