bugfixes: serialize list instead of np.array; test if chart exists before destroying