Add missing stack.pop() in deleteFileImpl