ensure file handles are closed
ensure file handles are closed

rjschwei/WALinuxAgent,rjschwei/WALinuxAgent,andyliuliming/WALinuxAgent,hglkrijger/WALinuxAgent,Azure/WALinuxAgent,Azure/WALinuxAgent,hglkrijger/WALinuxAgent,andyliuliming/WALinuxAgent