Avoid segv when application is terminated.

Change-Id: Iee24b7b8d101333c72f9bbf4165bf48f26e7fbad
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>