update the way sessions are destroyed