Allow exception handler on command line

Allow the user to pass in an exception handler on the command line.