Adds explicity log file close if it is is there. Also random delay flag to the analyze
Adds explicity log file close if it is is there. Also random delay flag to the analyze

glennsb/zmq_distributed_worker,glennsb/zmq_distributed_worker