Error handling for deleted file