DBUS-168: DistCp leaks input file handles

Refer #28