cli: Add network exception check