Exception handler support added.

Hi Daniel,

this is my first try to make a pull request, so sorry about the quality. Let me know if you will include this in your codebase. Thanks.

Regards,
Maros.