make sure to close HTTP connections