fix stdout handler async mode write error