fix shutdown() error and add CTY2117