Cleanup  and Shutdown
n JS_DestroyContext(cx);
Does an implicit JS_EndRequest(cx)
JS_DestroyContextNoGC(cx)
JS_DestroyContextMaybeGC(cx)
n JS_DestroyRuntime(rt);