Updated approach for restarting the instance on configuration changes