Fix crash on DeviceManager destruction Commands register for state changes, so they need to be destroyed first before the StateChangeQueue is destroyed. Change-Id: I06ed3d3f3841a8b03c2825547f0077f292ca6179