clear config after dispose.