more general catching of the mongo exception