session termination fixed