If the ball is out of play when an infraction of the Laws of the Game occurs, play is restarted according to the reason the ball became out of play before the infraction.
If the misconduct occurs when the ball is in play, play need not be stopped to administer a caution or a dismissal, as these may be done at the next stoppage of play (this is usually the case when the opposing team would gain an advantage in having play continue).