If something happens while the Captain is resting, he would only be responsible for the outcome based on his decisions AFTER he had been advised. The relief crew would be responsible legally up to that point. I would caution however that the courts may not hold to that, so basically.... no one really knows until it's tested in court.