Any person subject to this part who, knowing that an offense punishable by this part has been committed, receives, comforts or assists the offender in order to hinder or prevent his apprehension, trial or punishment shall be punished as a court-martial may direct.