Handle mongo exceptions