trying to catch the proper exit status for input file errors