Improved error checking for when connection to the game server or the master server is lost.
Merge pull request #25 from isupeene/improved_error_checking

Improved error checking for when connection to the game server or the master server is lost.