fixed issue when trying to close disconnected device console