delete temp file when pipe closes