Signs that a downturn is imminent spurred Narendra Modi into action