If auth fails, call pam_end so PAM backends can call _cleanup

This patch fix issue #171 and #169 
If the authentication fails, calling pam_end informs PAM module , and they can take care of cleanup of theirs resources