Client exits if repeated name

Closes GUI windows and exits program if duplicated name