I wonder if using the same promise for the close and writeRstStream is really correct.