in reply to Problems w/ system calls

What happens if you launch the second app from the prompt with the same port as the first? Does it kill the fisrt app? If it does, I'd suggest taking a long look to make sure your second script invocation does not use the same port as the first one.