We didn't check for sync object being already allocated. In fact, we simply need to use proper function to free session.