AttemptTo calls a code block and re-tries it if it throws an exception. Otherwise exits
Bas Vodde
k.A.