add logging of failed writes