Set loadingFiles to false if loading files failed.