Kill Scala shell when WebSocket closes.