@TimeLimit setting in Ola-Hallengren's IndexOptimize Running Much Longer Than The Value Set
As explained in the documentation (and evident from the procedure source code), TimeLimit is used to

Set the time, in seconds, after which no commands are executed.

(emphasis above is mine).
A command that started before the threshold will keep running until it completes.