delete session XML object after loading and setting state.