Studio automation with serverbased TMs: Too many concurrent users

Hi everybody, Hi Paul and Hi Romulus

While generating translation packages programmatically with Studio API we get the error "too many concurrent users" .  We connect only once to the TM Server and then analyze, pretranslate, populate the project TM etc. We would expect that only one concurrent user CAL is in use for each of these processes. But after some time we always get this error.

If we then wait for lets say one minute, the number of used licenses is set back to the maximum. 

Is there a way to log out from TM Server or otherwise close the connection respectively? Or is there another way to avoid this error  (except with buying 100  additional concurrent user CALs)?

Best regards