try moving the plot to after MPIPool closes