Cross-platform flexible kill processes or correct finalize multi-processes app. With minimum code using ps (for Unix) and wmic (for Windows)