Added a pre-terminate message

Signed-off-by: chenshuiluke <chenshuiluke@gmail.com>