Error reporting and handling improvements to webterm (OMS-226)