private static bool CanHandleException(Exception error) { return error is HttpListenerException || error is ObjectDisposedException || error is IOException; }