alert on write error