engine: Cleanup state validation.