Easily retry block of code in case of an exception