Create a function out of pam_sm_close_session to delete the credentials.