diff --git a/Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs b/Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs index 37e0961eb..5a6633525 100644 --- a/Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs +++ b/Flow.Launcher.Core/Plugin/JsonRPCPluginV2.cs @@ -148,9 +148,11 @@ namespace Flow.Launcher.Core.Plugin catch (RemoteMethodNotFoundException e) { } - - RPC?.Dispose(); - ErrorStream?.Dispose(); + finally + { + RPC?.Dispose(); + ErrorStream?.Dispose(); + } } } }