Problem: did not correctly handle invalid server endpoints

Solution: handle with exception in client dialog.