Prevent recursion of write error