Add ability to read ticket from session
Fix regex for determining that ticket expired
Implement session retry properly