End workflow after we retry. Otherwise we get an error on the next if statement when accessing the statusCode.