Properly throw exceptions caught during hook dispatch.

- Fixes #36.