Add missing code for backend initiated device removal