End PAM session after user session started.

Fixes the crash after login/logout twice bug with systemd.