Remove unnecessary step from [[doClose]]

When [[onClose]]() throws, we just call [[error]] and it rejects [[closedPromise]].