Minor code cleanup; clear persistent cache when removing sessions.