I was going to check that the errno was ENONET, but later decided it wasn't worth it.