Responding to Shocks in the Pre-industrial World