[runtime] Fix a shutdown leak.