class Deno.errors.BadResource extends Error The underlying IO resource is invalid or closed, and so the operation could not be performed.