fixed NPE of websocket.close() caused by race condition
closed araqne/logpresso.com#176. support webconsole.uipath override