(a) Except as stated in paragraph (c), a lawyer shall not represent a client or, where representation has commenced, shall withdraw from the representation of a client if:
(1) the representation will result in violation of the rules of professional conduct or other law;
(2) the lawyer's physical or mental condition materially impairs the lawyer's ability to represent the client; or
(3) the lawyer is discharged.
(b) Except as stated in paragraph (c), a lawyer may withdraw from representing a client if:
(1) withdrawal can be accomplished without material adverse effect on the interests of the client;
(2) the client persists in a course of action involving the lawyer's services that the lawyer reasonably believes is crimina