close HTTPConnection in finally block