Delete temp directory at the end of minimisation