INTERNAL. proper connection error handling for GUI