Implement SIGTERM Action and CoreEngine::Terminate.

Signed-off-by: Hayato Nakamura <hyt.rugby@gmail.com>