Look for the correct exception when a file is deleted