Ensure OpenSSL error queue is cleared before each operation.