public function finish(){
        $this->running = 0;
        $this->success = 1;
        $this->last_execution_time = self::execution_time();
        
        if ($this->save()){
            Console::stdout(Console::ansiFormat("*** finished ".$this->controller."/".$this->action." (time: " . sprintf("%.3f", $this->last_execution_time) . "s)\n\n", [Console::FG_GREEN]));
            return true;
        }else{
            Console::stdout(Console::ansiFormat("*** failed to finish ".$this->controller."/".$this->action." (time: " . sprintf("%.3f", $this->last_execution_time) . "s)\n\n", [Console::FG_RED]));
            return false;
        }
    }