If I remove the splash screen and the restart on crash, I don't get the wrapping process and thus exiting work. This sounds like a bug in the wrapping process.
When Windows Restart Manager causes my app to exit, the launch4j wrapper keeps on running