The executor or administrator of a deceased sheriff shall have like remedy for such defaults and misfeasances as the sheriff would have if in office.