correctly print traceback to log file in debug mode
handle missing parser class