Provided that if the sentence directs that in default of payment of the
fine the offender shall be imprisoned, and if such person has undergone the
whole of such imprisonment in default, no court shall issue a distress
warrant unless for special reasons, to be recorded in writing by the court, it
considers it necessary so to do.