Added File.delete to clean up temp file