Dont throw errors if ws is not opened