If not CLI mode then stop script.