Update _check_command and _status_update for return code checks