Fixed bug with getting output from non-running processes.