Text this: Impact of discontinuous treatments on disease dynamics in an SIRepidemic model