Reprise : Refactor tempFile name and delete it after reprise