Remove unneeded pipe and goroutine

Simply write directly to the Writer.