I see. Thanks for the input.
I can close a ticket... it just isn't quite as closed as when you close it from within kaseya web interface.
eg, setting status to closed and moving to stage close, isn't actually a closed ticket. (you can still edit the ticket in kaseya web interface without "re-open"ing the ticket).
If I close it in kaseya, the function works as expected. If I close it myself in the procedure, the function still thinks it's open.
I have my escalate every 1 minute procedure archiving closed tickets... so I've solved my problem.
I have a ticket open with kaseya, so eventually, I am sure there will be a hotfix eventually (hopefully a "closeTicket()" function...