UI option checker and shutdownHook