Report any IOException while writing to caller instead of ignoring it