Closes HTTP connections after use