Disable garbage collection when in imperative language block