Make WritableStream's wait() return a rejected promise once close()-ed