Solved: The answer is too fast, added temporary sleep.
When the logic is completed, the delay may be enough to allow the deletion
of the sleep clause, altough this didn't happen with previous version of
the server. I'll discuss this with the server admin.