Remove temporary files on cancel

Fixes #127.