Sleep should cover error cases.