Notify exception listener rather than crash when no available handlers.

Fixes #668.