enabling connection-close to work around memory issue.