The stock market has provided a timely reminder that the strong global economy which has buoyed Australia in recent years cannot last forever.