Remove static pages when it's closed