app: fix double channel closing