added script to restart websocket server when it fails