Closing mongodb session connections