cleanup on file action