(b) Notwithstanding the provisions of subsection (a) of this section, any person who knowingly harbors, conceals, maintains or assists the principal felon after the commission of the underlying offense violating the felony provisions of sections one, four, or nine of article two of this chapter, or gives such offender aid knowing that he or she has committed such felony, with the intent that the offender avoid or escape detention, arrest, trial or punishment, shall be considered an accessory after the fact and, upon conviction, be guilty of a felony and confined in a state correctional facility for a period not to exceed five years, or a period of not more than one half of the maximum penalty for the underlying felony offense, whichever is the lesser maximum term of confinement. But no person who is a person in the relation of husband and wife, parent, grandparent, child, grandchild, brother or sister, whether by consanguinity or affinity, or servant to the offender shall be considered an accessory after the fact.