A lawyer should not accept representation in a matter unless it can be performed competently, promptly, without improper conflict of interest and to completion. Ordinarily, a representation in a matter is completed when the agreed-upon assistance has been concluded. See Rules 1.2(c) and 6.5. See also Rule 1.3, Comment .
 A lawyer ordinarily must decline or withdraw from representation if the client demands that the lawyer engage in conduct that is illegal or violates the Rules of Professional Conduct or other law. The lawyer is not obliged to decline or withdraw simply because the client suggests such a course of conduct; a client may make such a suggestion in the hope that a lawyer will not be constrained by a professional obligation.
 When a lawyer has been appointed to represent a client, withdrawal ordinarily requires approval of the appointing authority. See also Rule 6.2. Similarly, court approval or notice to the court is often required by applicable law before a lawyer withdraws from pending litigation. Difficulty may be encountered if withdrawal is based on the client's demand that the lawyer engage in unprofessional conduct. The court may request an explanation for the withdrawal, while the lawyer may be bound to keep confidential the facts that would constitute such an explanation. The lawyer's statement that professional considerations require termination of the representation ordinarily should be accepted as sufficient. Lawyers should be mindful of their obligations to both clients and the court under Rules 1.6 and 3.3.
 A client has a right to discharge a lawyer at any time, with or without cause, subject to liability for payment for the lawyer's services. Where future dispute about the withdrawal may be anticipated, it may be advisable to prepare a written statement reciting the circumstances.
 Whether a client can discharge appointed counsel may depend on applicable law. A client seeking to do so should be given a full explanation of the consequences. These consequences may include a decision by the appointing authority that appointment of successor counsel is unjustified, thus requiring self-representation by the client.
 If the client has severely diminished capacity, the client may lack the legal capacity to discharge the lawyer, and in any event the discharge may be seriously adverse to the client's interests. The lawyer should make special effort to help the client consider the consequences and may take reasonably necessary protective action as provided in Rule 1.14.
 A lawyer may withdraw from representation in some circumstances. The lawyer has the option to withdraw if it can be accomplished without material adverse effect on the client's interests. Withdrawal is also justified if the client persists in a course of action that the lawyer reasonably believes is criminal or fraudulent, for a lawyer is not required to be associated with such conduct even if the lawyer does not further it. Withdrawal is also permitted if the lawyer's services were misused in the past even if that would materially prejudice the client. The lawyer may also withdraw where the client insists on taking action that the lawyer considers repugnant or with which the lawyer has a fundamental disagreement.
 A lawyer may withdraw if the client refuses to abide by the terms of an agreement relating to the representation, such as an agreement concerning fees or court costs or an agreement limiting the objectives of the representation.
Assisting the Client upon Withdrawal
 Even if the lawyer has been unfairly discharged by the client, a lawyer must take all reasonable steps to mitigate the consequences to the client. The lawyer may retain papers as security for a fee only to the extent permitted by law. See Rule 1.15.