Rewrite shutdown-method% as a procedure.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>