'[AgentDeployWizard]'.$e->getMessage() ]); exit; } else { echo '[AgentDeployWizard]'.$e->getMessage(); } // Stop this execution, but continue 'globally'. return; } // AJAX controller. if (is_ajax()) { $method = get_parameter('method'); if (method_exists($adw, $method) === true) { if ($adw->ajaxMethod($method) === true) { $adw->{$method}(); } else { $adw->error('Unavailable method.'); } } else { $adw->error('Method not found. ['.$method.']'); } // Stop any execution. exit; } else { // Run. $adw->run(); }