supressing final socket closed exception.