Buggy code:
public class BittorrentDownload implements com . frostwire . gui . bittorrent . BTDownload { private static final Logger LOG = Logger . getLogger ( BittorrentDownload . class ) ; private final BTDownload dl ; private String displayName ; private long size ; private List < TransferItem > items ; private boolean partial ; private boolean deleteTorrentWhenRemove ; private boolean deleteDataWhenRemove ; private BTInfoAditionalMetadataHolder holder ; private CopyrightLicenseBroker licenseBroker ; private PaymentOptions paymentOptions ; public BittorrentDownload ( BTDownload dl ) { } public BTDownload getDl ( ) { } @ Override public long getSize ( ) { } @ Override public String getDisplayName ( ) { } @ Override public boolean isResumable ( ) { } @ Override public boolean isPausable ( ) { } @ Override public boolean isCompleted ( ) { } @ Override public TransferState getState ( ) { } @ Override public void remove ( ) { } @ Override public void pause ( ) { } @ Override public File getSaveLocation ( ) { } @ Override public void resume ( ) { } @ Override public int getProgress ( ) { } @ Override public long getBytesReceived ( ) { } @ Override public long getBytesSent ( ) { } @ Override public double getDownloadSpeed ( ) { } @ Override public double getUploadSpeed ( ) { } @ Override public long getETA ( ) { } @ Override public String getPeersString ( ) { } @ Override public String getSeedsString ( ) { } @ Override public void setDeleteTorrentWhenRemove ( boolean deleteTorrentWhenRemove ) { } @ Override public void setDeleteDataWhenRemove ( boolean deleteDataWhenRemove ) { } @ Override public String getHash ( ) { } @ Override public String getSeedToPeerRatio ( ) { } @ Override public String getShareRatio ( ) { } @ Override public boolean isPartialDownload ( ) { } @ Override public Date getDateCreated ( ) { } @ Override public PaymentOptions getPaymentOptions ( ) { } @ Override public CopyrightLicenseBroker getCopyrightLicenseBroker ( ) { } private class StatusListener implements BTDownloadListener { @ Override public void update ( BTDownload dl ) { } @ Override public void finished ( BTDownload dl ) { if ( ( ! ( SEED_FINISHED_TORRENTS . getValue ( ) ) ) || ( ( dl . isPartial ( ) ) && ( ! ( SEED_HANDPICKED_TORRENT_FILES . getValue ( ) ) ) ) ) { dl . pause ( ) ; <START_BUG> finalCleanup ( dl . getIncompleteFiles ( true ) ) ; <END_BUG> } File saveLocation = dl . getSavePath ( ) ; if ( ( ITUNES_SUPPORT_ENABLED . getValue ( ) ) && ( ! ( iTunesMediator . instance ( ) . isScanned ( saveLocation ) ) ) ) { if ( ( OSUtils . isMacOSX ( ) ) || ( OSUtils . isWindows ( ) ) ) { iTunesMediator . instance ( ) . scanForSongs ( saveLocation ) ; } } if ( ! ( LibraryMediator . instance ( ) . isScanned ( dl . hashCode ( ) ) ) ) { LibraryMediator . instance ( ) . scan ( dl . hashCode ( ) , saveLocation ) ; } GUIMediator . safeInvokeLater ( new Runnable ( ) { public void run ( ) { BTDownloadMediator . instance ( ) . updateTableFilters ( ) ; } } ) ; } @ Override public void removed ( BTDownload dl , Set < File > incompleteFiles ) { } } public String makeMagnetUri ( ) { } public TOTorrent getTOTorrent ( ) { } private void setupMetadataHolder ( ) { } private void finalCleanup ( Set < File > incompleteFiles ) { } private long calculateSize ( BTDownload dl ) { } private List < TransferItem > calculateItems ( BTDownload dl ) { } }

Fix:
finalCleanup ( dl . getIncompleteFiles ( ) ) ;