README: handle rejected promise in ping example