Script should exit with non-zero error code on connection errors