Support for shutdown with wrong java home.