flush on error from client