more careful now about closing mongo sessions