Added command ret value check.