Remove temporary files on exit or cancel

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