When an exception is raised in an example, after hooks do not run.

Closes #39