The court erred in requiring [the attorney] to turn over its litigation file, on which [it] had a retaining lien, without first ensuring that payment for [its] legal services was made or secured, and in the absence of any waiver or exigent circumstances. The court also erred in not directing plaintiff, as the former client, to bear the costs of reproduction and delivery of the file.