title: PyMySQL throw "pymysql.err.Error: Already closed"
body: <p>In PyMySQL, How to make <code>pymysql.connect</code> keep-alive forever ?</p>
  
  <p><strong>OR</strong> </p>
  
  <p>How to check connect already closed before used.</p>