added close method to pymysql wrapper