Handle exception for file not existing.