solving bug where 	asyncHttpClient.close(); was called in the same
thread. This was reported by in the logfiles as a mistake.