The worst quarter in the history of the stock market comes to a close.