Fix unloading machine runtime.