ensure callbacks get called for s3 buckets io_close