in reply to Interrupting a Thread

I believe this error usually happens when your main thread existed while the children are still running. You may want to use "$thread->join()" to wait for the children to finish.