Handle file not found errors instead of checking for file existence.