Self-driven criticality in a stochastic epidemic model.