change to .close() on http response