FIXED: session termination checking