callback_cmdopt args cleanup