close connection after init the mongodb