Abort program after max retry failed; A clearer / better retry logic