guard against duplicate DONE commands