def destroy(self, w):
if MPI_ENABLED:
if mpi.rank == 0:
if self.thread is None:
wake_nodes(1)
mpi.bcast(None)
else:
wake_nodes(3)
gobject.source_remove(self.pbar_timer)
gtk.main_quit()