Create a zpool.export event (with corresponding script)
that's triggered when a pool is exported.
Create a zpool.import event (with corresponding script)
that's triggered when a pool is imported.