fix bug, can not remove session file
Merge pull request #494 from pengfei-xue/develop

fix bug, can not remove session file