to put sth in order; to finish sth completely
square sth away
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition