Fix process synchronization

The coordinator handles profiler and collector failures.
There is one collector per profiler (not enough).
The coordinator waits for profilers and collectors to terminate.