Add logging Exception in shutdown

Signed-off-by: Kenji Suzuki <kenji.uui@gmail.com>
Merge pull request #1708 from kenjis/fix_shutdown

Add logging Exception in shutdown