Add an exit hook so that output modules have a chance to flush data when receiving a TERM signal.
Add an exit hook so that output modules have a chance to flush data when receiving a TERM signal.

jsiembida/bucky3