raft: clean up