Fix segfault on exit
Without destroying the device manually there's a double free crash inside iHD (intel-media-driver) with libvdpau-va-gl wrapper.
free(): double free detected in tcache 2
[1] 131309 IOT instruction (core dumped) vdpauinfo
Possibly should also fix #2 (closed) and #4