Got an error when running scripts in Lotus Notes

I was testing a new system using Lotus scripts when intermittently I got this error message, see screenshot below.
You see, I was running a script with createobject function on a notes client using the runonserver method.
I searched the web but the resolution I found was inadequate and wasn’t really a resolution after all because the error happened again.
Do you know any workarounds for this kind of problem?
Please help.

IBM Lotus Notes
Cannot create automation object
