Reset of Session number (automation script)?

I use the example automation script (thread) with Manager.connect.
It is working fine, but I have not found a way to reset the session number.
I would need to close it (or using manager.launch) which will result that some aquistion might be lost.
Is there another way to reset the session number ? Once it reaches 999, the application will stop

@michael Thanks for reporting this issue to us. The automatic counting upwards of the session number while the software is left open is something we should certainly fix. I ended up posting on our ideas site below to make sure we record this request publicly. I’ve also linked your forum post there.

In the meantime, one workaround would be to close and re-open the application using your script to reset the session number (not a great and clean solution, unfortunately).

Something like…
with automation.Manager.launch() as manager:
…will automatically launch the software and close it once you exit the with block.