Some NULLing in gc_free, for easier bug hunting.
Re-ordering to avoid race on event loop startup.