Any deliberate action that a player takes that causes the restart to be delayed can be judged by the referee that way and cautioned for it. Including tie OP and @socal lurker 's scenario. Obviously if the sub genuinely doesn't want to come off then it would be a harsh caution but if they are using it as a tactic to waste time, I'd caution it. Saying play continues doesn't exclude the possibility of a caution.