modify close handling