Added retries while checking kill script return code. Removed sleep from kill script.