Use the cmd in executor_config as command and added some error handling.