[VLC] segfault on exit improved