def _finalize(self):
self._logger.info(<EOL>"<STR_LIT>",<EOL>self._modelID, self._currentRecordIndex + <NUM_LIT:1>)<EOL>self._updateModelDBResults()<EOL>if not self._isKilled:<EOL><INDENT>self.__updateJobResults()<EOL><DEDENT>else:<EOL><INDENT>self.__deleteOutputCache(self._modelID)<EOL><DEDENT>if self._predictionLogger:<EOL><INDENT>self._predictionLogger.close()<EOL><DEDENT>if self._inputSource: <EOL><INDENT>self._inputSource.close()<EOL><DEDENT>
Run final activities after a model has run. These include recording and
        logging the final score