Return errors directly from sockflush.