Remove temp file after close.