fix session handling garbage collector