Save the config when closing WCM window via X button