Set pipefail option on when connecting