Harvesting can stabilize population fluctuations and buffer the impacts of extreme climatic events