The error you got is
CKR_OPERATION_NOT_INITIALIZED
This happens when the function Cryptoki.Initialize is not called.
In your case it seems as you have a Session object that becomes to a not initialized Cryptoki instance.
Maybe you called Cryptoki.Finalize in some place.