Add creation of an error file in case something wrong happend during the execution