If a long running command, tail -f for exaple, is executed via exec_command the command is aborted after exec_command returns. Fix by returning the pty to be used by get_stdout to get continuous output. Also provide feedback in get_stdout that the command has not finished executing, how long it's been running and a way to kill it.