Added server selection option for login frame and fixed problem with
client crashing if the server is unexpectedly disconnected.