close function notification