removes temp file is it exists to avoid error