Sink2 and channel2 should be closed in Flume

as title
Only one ".count.map" method in main method In al examples. I thought that's the additional call. 
Please keep original status if that's not the additional call.