MongoError: cursor killed or timed out?

We have a long serverside job/process that inserts a bunch of records into Mongo collections.
However we repeatedly get the message
MongoError: cursor killed or timed out

Is there any way to deal with this? We’ve now tried bulk insert which speeds it up some but we still end up getting this error.

Regards,
Lee