SOAP Error Running subprotocol in Parallel

I'm getting a SOAP error

'SOAP Faultcode: SOAP-ENV:Client. Error code: 24'

while I'm trying to run a subprotocol in parallel. I'm passing in one string at a time to the subprotocol (run to completion = true) then in the protocol itself I make a db call, then do some stats in r, and output a numeric value. It does work for like 3000 or so records (so I don't think its a coding problem) but then I get this SOAP error and I have no idea where the error actually is. Is there any way to debug this, has anyone seen this before?

Cheers,

Pichai