Write error immediately.