Added error mgt for Mongo ex