added mongo close session in AP package