A solicitor may take security from his client for his costs, to be ascertained by assessment or otherwise, in respect of any contentious business to be done by him.
If a solicitor who has been retained by a client to conduct contentious business requests the client to make a payment of a sum of money, being a reasonable sum on account of the costs incurred or to be incurred in the conduct of that business and the client refuses or fails within a reasonable time to make that payment, the refusal or failure shall be deemed to be a good cause whereby the solicitor may, upon giving reasonable notice to the client, withdraw from the retainer.