handling VLC closing better