Fixed HTTP outputs not closing cleanly.