remove process.kill in Rrgistry destroy, refactored shutdown flow.