Ensure the the mysql connection is close