Change ignore warning for a thread safe alternative based on the session handle.

See #74