don't retry forever when we're trying to terminate the process
Merge pull request #47 from Amicus/feature/working_shutdown

don't retry forever when we're trying to terminate the process