use gun:shutdown instead of gun:close