Costly Contracting in a Long-Term Relationship