Fix bug in out-of-bounds input for JQWorker::sleep() that would cause time_nanoseconds() to fail.
Add maxRuntimeSeconds to allow for automated detection of hung jobs.