Terminate the promise in the example.