moved where mongo* get killed and clean up at then end