By "the process dies", do you mean the process no longer exists? If so,
you should look into how you run this process - maybe start it outside of the Java code.
Also, it may not be a good idea to close any of the process' stream, as this is code is doing in line 23. The process may not react well to that.
The code also seems to mix running a server process with dealing with the process it started - it might be a good idea to separate those concerns.