Fix error closing HTTPConnections directly.

Added .close() to HTTPConnections tests to cover regression.