Add step5 handle a Promise rejection and logging.