Clean up of tmp file