fix - connection was closed after first file is copied