DBUS-168: DistCp leaks input file handles

Refer https://jira.corp.inmobi.com/browse/DBUS-168