Fixed leaky mongodb connections.