Closing mongodb connection eventually.