Another surprise from Java

There is a javadoc for System.exit(int):

And based on this I made a simple java app:

I expect to see “$ system exit” only since System.exit(int) “terminates the currently running Java Virtual Machine”. But app never stop instead. The cause in shutdown hook and that’s specified in javadoc for method Runtime.exit(int):