Be more conservative, and set the cookie to 'false' before we enter the local compiler path. That way the user will avoid that path for subsequent requests, even if the local compiler crashes the browser. If we make it out of the local path safely, switch the cookie back to true