Added custom runtime and compiler error handlers.