exception handling while opening the url fixed