the daemon should be responsible for exiting itself when the device goes away if you really need to rely on a signal  then do it via a more reliable route like dbus or a named socket there is no guarantee that the pid stored in this file matches the daemon and you are not just randomly killing another process in the system you also need to consider the scenario that more than one usb device w this vid pid combo are plugged removed 