Molecular mechanism of suppression of circadian rhythms by a critical stimulus