Added mongo close session in AP package

Availability profile methods left mongo sessions open. Fixed.