Terminate the PAM transaction cleanly by calling pam_end()