added: framework.on('exit')
added on('exit')
added: onExit delegate