XX-11506:  Place try catch inside while loop so that run thread does not exit on mongo exceptions