Removed using shared_ptr in create_session.