Fixed stale connections issue.