Added a better error message when a session expires.