proto-shell: remove the device user before issuing the protocol down event