close out
To bring something to a final end: finish a project or event, secure a win, settle an account or position, or sell off the last of a stock.
Tell
the last step that ends it
Best when
You mean the last step that finishes something off, and you don't need to say whether it's a task, a game, an account or inventory.
Example
“The trader closed out the short before the closing bell.”