Hypercore introduced a new error to callbacks when closing.
This should have probably been a breaking change, as it triggers a new error on close in hyperdrive.
This PR adds a test for the new error case 33e0acab6ccee88c5ee77a0ef24f30c0ea94c400 and fixes it by using a flag if the hypercore is closed 79d10ad777a2aeade0af4e7a22b7d3fc8017e78f.
Hypercore introduced a new error to callbacks when closing. This should have probably been a breaking change, as it triggers a new error on close in hyperdrive.
This PR adds a test for the new error case 33e0acab6ccee88c5ee77a0ef24f30c0ea94c400 and fixes it by using a flag if the hypercore is closed 79d10ad777a2aeade0af4e7a22b7d3fc8017e78f.