Minor fixes, like clearing on shutdown and disabling buttons