Before an error in decoding caused the program to block forever since the read goroutine returned and stopped. Now errors are reported.