Trap and kill the launched app.
Optionally save output file in env-var defined path