flush console at end of main goroutine (#130)