Properly restore kernel driver (and /dev/* entries) on close