fix for leaky mongodb connections