explicit close method for PAM