Cleans up temp file