* added close function