Fix return codes for the mgmt commands.