Call connection.disconnect b4 returning response to caller, as this makes subsequent calls much faster (by a factor of about 10, e.g. in tests from 1000+ millis to about 13 millis)