close function and kill me