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

This I think is a compromise for my issue of retrying forever blocking a shutdown... now we just handle an at_exit and stop the client.