added try block around execute bulk operation in mongoMetricWriter, wasn't handling exception in that properly.