Export exception handling functions (fixes #29)