Smoother open/close of shell command outputs