added code so that we do not crash the kernel, if our own device got removed at some point