Allowed option to disable jobs after N attempts.

@andykram @florianleibert @mrdmnd 

Take 2.