Closing database connection as Mongo breaks at 1024 open connections