Updated onExit/onShutdown/onReset events and GUI enabling/disabling methods