Remove temporary file after configurable delay

Fixes #7