Write out to debug log when throwing PayloadException
Makes it easier to spot what's going on, otherwise one has to catch the exception in debugger to get its message.