Log when an expired session is being logged out.

Fix session registration.
WIP: listener test