Better handling of gnuplot closing
ObjectSharer fixes