auto-clean old state machines