call gc_disable() on shutdown to prevent some segfaults