add defer

Signed-off-by: zensh <admin@zensh.com>