add try catch block around api and websocket
add try catch block around api and websocket

greyatom-edu-tech/xterm-server,greyatom-edu-tech/xterm-server,greyatom-edu-tech/xterm-server,greyatom-edu-tech/xterm-server