Fix sessions not destroyed properly