[WIP] merge pull-requests locally

                    
|Q            |A   |
|---          |--- |
|Bug Fix?     |no  |
|New Feature? |yes |
|BC Breaks?   |no  |
|Deprecations?|no  |
|Fixed Tickets|#323|
|License      |MIT |
                    
**Work in progress**

- [ ] Tests
- [ ] Make usage of temp files more uniform (to much duplication right now)

Sent using [Gush](https://github.com/gushphp/gush)
(no pun) good catch.

I actually like to make this more uniform using a Filesystem helper.
Internally the Filesystem keeps track of which temp files were created, and allows to delete them all in one go

```
$tmpFile = $this->getHelper('filesystem')->createTempFilename();

// Do some stuff with temp file

// Remove all, this can happen in a catch or anywhere :) no need for a filename reference.
// So we can also do this at the end of a command execution using a subscriber
$this->getHelper('filesystem')->clearTempFiles();
```