Crash in constructor of C++ request class.

Initialization of sess(sess) caused crash