public function run(array $args) { try { $this->prepare($args); $this->process(); $this->cleanup(); } catch (Exception $e) { mcms::fatal($e); $this->log("Error: " . rtrim($e->getMessage(), '.')); exit(1); } }