refine logout flow to check for unresolved games