Add checking for websockets erroring.