If Firefox is still somehow responsive, open about:performance and identify the CPU-hungry tab(s), then close them.