Add maximum wait time of 24 hours before looking for next job. Fixes #30