The ending is deliberately ambiguous. In The End (final book):
Interpretations vary: likely imprisonment given the evidence; possible escape (he has history); or intentional ambiguity fitting the series' dark tone.
Ultimately, Olaf's fate is left to the reader's imagination.