session自动销毁相关操作，nullpointException异常修复

Signed-off-by: Mcgrean0519 <389314570@qq.com>