If in proceedings for negligence, default, breach of duty or breach of trust against—
it appears to the court hearing the case that the officer or person is or may be liable but that he acted honestly and reasonably, and that having regard to all the circumstances of the case (including those connected with his appointment) he ought fairly to be excused, the court may relieve him, either wholly or in part, from his liability on such terms as it thinks fit.
If any such officer or person has reason to apprehend that a claim will or might be made against him in respect of negligence, default, breach of duty or breach of trust—
Where a case to which subsection (1) applies is being tried by a judge with a jury, the judge, after hearing the evidence, may, if he is satisfied that the defendant (in Scotland, the defender) ought in pursuance of that subsection to be relieved either in whole or in part from the liability sought to be enforced against him, withdraw the case from the jury and forthwith direct judgment to be entered for the defendant (in Scotland, grant decree of absolvitor) on such terms as to costs (in Scotland, expenses) or otherwise as the judge may think proper.