Fix bad writes on close.

A small fix.

When the sftp task closes after writing both directories and files, it will write something such as

```
Created # directories
, copied # files
```

This fix writes it on the same line.