Remove temporary files on exit or cancel

As discussed in #127.
Using `next` in these throws `Error: callback() can only be called once`. The files are removed though.