The game does not end by assassinating four targets, nor by depleting the Animus deck. The only way the game can end is by gaining a desync token when the desync pool is empty or, more commonly, by attempting to draw a Memory card when there are no more cards in the Memory deck.
After the game ends, it’s time to check your high score (see High Score)