Thanks for the advice.
I added that in and generated as many PDFs as it took to experience the stalling (~33 but the size of each one varies).
All of the ones before the stall logged a complete job and handled missing images and the like OK. The one that stalled had this as the log:
Loading pages (1/6)
[> ] 0%
[======> ] 10%
[========> ] 14%
[=============> ] 22%
[===============> ] 26%
[================> ] 28%
[==================> ] 30%
[====================> ] 34%
[========================> ] 40%
[=========================> ] 43%
[===========================> ] 45%
[============================> ] 47%
[=============================> ] 49%
[====================================> ] 61%
[=============================================> ] 75%
[==============================================> ] 78%
[====================================================> ] 88%
Warning: Failed to load <image>.jpg (ignore)
[============================================================] 100%
Counting pages (2/6)
[============================================================] Object 1 of 1
Resolving links (4/6)
[============================================================] Object 1 of 1
Loading headers and footers (5/6)
Printing pages (6/6)
[> ] Preparing
[====> ] Page 1 of 14
[========> ] Page 2 of 14
[============> ] Page 3 of 14
[================> ] Page 4 of 14
[=====================> ] Page 5 of 14
[=========================> ] Page 6 of 14
[==============================> ] Page 7 of 14
Corrupt JPEG data: premature end of data segment
[==================================> ] Page 8 of 14
[======================================> ] Page 9 of 14
[==========================================> ] Page 10 of 14
[==============================================> ] Page 11 of 14
[===================================================> ] Page 12 of 14
[=======================================================> ] Page 13 of 14
[============================================================] Page 14 of 14
Done
Loading pages (1/6)
[> ] 0%
[======> ] 10%
[=======> ] 13%
[==========> ] 17%
[===========> ] 19%
[=============> ] 22%
[===============> ] 25%
[================> ] 27%
[=================> ] 29%
[===================> ] 33%
[=====================> ] 35%
[======================> ] 38%
[========================> ] 41%
[==========================> ] 44%
[===========================> ] 46%
[============================> ] 48%
[==============================> ] 50%
[===================================> ] 59%
[=======================================> ] 66%
[==========================================> ] 71%
[=============================================> ] 76%
[===============================================> ] 79%
[=================================================> ] 83%
[===================================================> ] 86%
So I'm thinking at that point it hit some kind of memory issue. It isn't related to the PDF being generated as I generated each one at least twice getting to the stall point.
This could be server related as well but has anyone had any experience of wkhtmltopdf having issues like this?