How to properly unregister LED class devices?