Application does not hang anymore on exec result