Failing more gracefully if a MongoException occurs (e.g. when removing a file to GridFS immediately after adding it can sometimes lead to a "missing chunk" error).
Custom version