prevent ugly traceback when output file is missing