add session close reason to close callback