Add an exception handler so halarni doesn't die on erroneous programs.