pub fn add_shutdown_hook<F>(func: F)where
    F: Send + 'static + FnOnce(),
Expand description

Register a shutdown hook to be called when the process exits.

Note that shutdown hooks are only run on the client, so must be added from your setup function, not the #[pg_test] itself.