stdout and stderr of executed commands was previously only logged at the very end, now gets logged when it is received.