Fix race problem clearing out previous stdout when getting term pid
Fix race problem clearing out previous stdout when getting term pid

takluyver/terminado,takluyver/terminado,ResearchComputing/terminado,akalipetis/terminado,ResearchComputing/terminado,ellisonbg/terminado,ResearchComputing/terminado,ellisonbg/terminado,akalipetis/terminado,ellisonbg/terminado,akalipetis/terminado