add pool.close() to close MPI process