Bug 980178 - Clean up context loss handling code. - r=kamidphish