Handle the Write errors