made session removal more error tolerant (removed FK's, reordered steps)