When device is unplugged, it will remove the thread
Fixes assert when removing the filter without attaching it anyways