Catch and print exception in case websocket fails

Change-Id: I5f243f1b45ce8882ce2f6bb9a6e97ebf2434437a