more close handling