Executor now passes number of remaining attempts to callback.