import { IEventManager } from './types' ; import { Event } from './constants' ; export default ( eventEmitter ) => { process . on ( 'exit' , ( ) => { eventEmitter . emitEvent ( Event . HANDLE_TERMINATE_APPLICATION_EVENT ) ; } ) ; } ;