I added some thread checking around the session, and it looks like we're accessing it from multiple threads by mistake which we've now fixed. Closing.