Fix warning about disconnected device