remove temp file when its no longer needed