merge from stable: sqsession_destroy