Don't call PictBotX's isConnected() method from the main thread.