Whoa. Fix NPE caused by closing Connection during iteration