Separated error handler into two parts so exceptions generated while handling rejected notifications can be handled later in the pipeline. Fixes #37.