adding exception processing for mongo write
fixing typo in combine