fix ws bug in prod
liveupdater: close socket on error