Adding signal(SIGPIPE, SIG_IGN) to ignore signals from OpenSSL