Handle the case of pressing 'Cancel' on the name prompt.