Check config for persist connection.
Merge pull request #474 from Min2liz/patch-2

Check config for persist connection.