Fixed uniform leak at shutdown.