OpenSSL: clear error stack before avery I/O operation