<p class="MsoNormal">The stock market closed out its worst quarter since the pandemic-induced market crash in early 2020 on Thursday, but a resurgent energy sector has posted a stunning rally.</p>