multiprocessing.Pool objects must be explicitly closed before exiting the application.
multiprocessing.Pool
See lhcb/Alignment!199 (merged) and, for example, https://github.com/dask/dask/issues/5806.