Added missing websocketerror exception handling.