smi2021: Bugfix for NULL pointer dereference
smi2021: Fix device cleanup

The device would fail to propperly clean up after it self if the device
got yanked during capture.

This commit should fix that issue