If you write code that supports an application that maintains an active stream read (consumes a data stream) from a remote file, registry key, WMI/WBEM provider, DB source, etc., such as an active log parser or event monitor, and your app hangs when the remote connection fails:
Walk outside and kill yourself. Your software sucks and is causing pain to other human beings. If suicide isn't your thing, then volunteer for medical research. That is all. Thank you.