fixed dont_close, set default to false