Add ability to control exception catching.