Used unique temp path and cleanup afterwards.