Fixed verbosity of exceptions in socket connections