fix progress. on big files print error message before exiting with debug active