Minor fixes
Added function pam_sm_close_session()