fix(wsh): Use errorLogException() to report errors (closes #4938)