Adding fixes for additional uncaught exceptions, xsp.openlog.email to hold email and storing errors over 32000 characters to logDocInfo field

Signed-off-by: Paul Withers <paulswithers@hotmail.co.uk>