Exception handling for unnecessary files