Add deleting the temp dir in finally block