fix issue#521, return error when init redis session
Merge pull request #522 from pengfei-xue/develop

fix issue#521, return error when init redis session