Added mongo close session in AP package

AP package operations left open mongo sessions. Fixed.