Added plot.destroy() method, to properly destruct and release memory of a plot.