When doing a simple XConnection the query is taking a long time to return. In this case it is taking over twenty minutes.
Confirm that the Trace Sessions is not enabled.
From the main menu >> Tools | Trace Sessions, confirm that To Output and To File are not checked.
If either is checked, unchecked these options and run the XConnection again.
Note: Because this trace logs information for each execution, it can slow performance on your computer.