cleaned up job timeout logic so it can be stopped when job completes.