For example, at https://github.com/sikanrong/umzug-postgres-storage/blob/master/src/umzug-postgres-storage.js#L34:
The .then() callback will get called and close the pool if the query completes successfully. But if the query fails, the promise will reject instead of resolve, and the callback to close the pool will never get called.