sys_cmd error handling improved.