Hello when you find such a failing to close vlc, you might consider to run following line. That should give you a vlc_*.txt file which contains all threads current backtrace and might point to where the vlc process is waiting.
for pid in `pgrep vlc`; do gdb -q --pid $pid -ex "set pagination off" -ex "set width 0" -ex "thread apply all bt full" -ex "info share" -ex detach -ex quit; done 2>&1 | tee -a vlc_$(date +%Y-%m-%d_%H-%M-%S).txt Even better if debug symbols are installed like described in [1]. Starting with vlc-bin-dbgsym. Kind regards, Bernhard [1] https://wiki.debian.org/HowToGetABacktrace