Reset buttons on terminate.