Close the panel and lock it