fixed file closing app when not found