Terminate a build based on a specified percentage of the mean of the duration of the n most recent non-failing builds.