Fix stdout/stderr logs to sync outputs
Merge pull request #240 from sugitak/sync_stdout_log

Fix stdout/stderr logs to sync outputs