Handle state save exception on_enter in agent.