Why finally

The finally block always executes when the try block exits. This ensures that the finally block is executed even if an unexpected exception occurs. But finally is useful for more than just exception handling — it allows the programmer to avoid having cleanup code accidentally bypassed by a returncontinue, or break. Putting cleanup code in a finallyblock is always a good practice, even when no exceptions are anticipated.

https://docs.oracle.com/javase/tutorial/essential/exceptions/finally.html