Add watchdog thread to terminate inactive websocket connections