Implement job expiration and reaping

or consider putting this on one line (or only split across 2 if it won't fit on 1).