Erasing tmp files on restart