Set session to nil after close