rhbz978072 show command hook output and ensure child processes will be terminated properly