/// <summary>
 /// Performs housekeeping code once a transfer is paused. This implementation
 /// closes an open file stream on the temporary file.
 /// </summary>
 /// <param name="transfer">The paused transfer.</param>
 protected override void PauseTransferImpl(TTransfer transfer)
 {
     if (fileCache.ContainsKey(transfer.TransferId))
     {
         TempStream tempStream = GetCachedTempData(transfer, null);
         tempStream.Pause();
     }
 }