cleanup of Mongo exceptions; pass Mongo exception code back on caught exceptions. closes #1525