CHANGE: Also remove the Ancestor relations if the file insertion fails