core: only delete state if not created on initialize only

/cc @sethvargo