handle stale sessions on dismiss