io_glue_destroy() now uses an extra callback to handle type specific