Fix for too many open files error. Makes all the objects null so that they are eligible for GC. Todo : use one instance of httpclient per thread