Add support for console exceptions