Remove temporary files.
Add a timeout, as the user may hang it.