added more debug info on session close error