close slaves before exiting MPI

- recommended by Jared Baker (Mount Moran)