Reset the state after command completion.