more fully cleanup tmp directory in gpkg, even if we exit on error