Hello,
Recently I've stumbled into a problem that if one of the goroutines panics - there seems to be no way to free up resources that were allocated in other goroutine or in main().
Basically, I run the process via `exec.Command` with `defer cmd.Process.Kill()` and then one of the goroutines panic'd. The process stayed there.
The question is this: in other languages you usually have a way to define some form of try-catch-finally in global scope so that if anything anywhere goes wrong - you can cleanup.
Is there such a mechanism in Go? I kind of expected defer-recover in main() to work like that, unfortunately it's not the case.
Thanks!