handles kgs-genmove_cleanup command