Can not close StreamReader (reader.Close(); blocks code)
===

I get  continous mesages from web url:

        string webUrl = "xxxxx/status.cgi";
    	WebClient client = new WebClient();
    	client.Credentials = new NetworkCredential("UUU", "PPP");
    
    	StreamReader reader = new StreamReader(client.OpenRead(webUrl), Encoding::UTF8,true);
    	string line;
    	int counter = 0;
    	while ((line = reader.ReadLine()) != null)
        {
    		if( line == "XXXXXX")
    		{
    		   break;
    		}
        }
    
    	
    	Console.WriteLine("Try to Close Stream Reader...");
    	reader.Close();
    	Console.WriteLine("Stream Reader is closed...");


**The problem is that when I  break from while loop, i want to close the stream reader...But stream reader does not close...."reader.Close();" hangs/block the code...**

Why this happen? How to fix it? 