Details
Description
When the system is being shutdown, it might happen that migrations are still ongoing [in cleanup], while the ExecutorPool they schedule work on gets terminated. In order to prevent this, we should make sure that all migrations have completed before the ExecutorPool they use terminates.