error if package directory can't be removed