add room close function