handle case where client creation fails

otherwise you get a spurious error from net.js pushed up the stack...