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