issue 1088: Fixed connection purging issue in ConnectionManager