bugfix: avoid "Broken Pipe" if connection fails