First implementation of room closing functionality