delete on shutdown and gem library support