Capturing Net Client Error if Server Not Running

I think the problem is that the Client Constructor starts a new thread, but I have no idea, how to catch exceptions in a thread. Processing tries to follow the exception in your code, and if threads point outside of your sketchfolder, just your “thread caller” ist highlighted.
Python for example does not matter if it is in your code, and a looong exception is shown to the mattering script.