Did it go into sleep mode, though? Or was it just running all the time? If the latter, then that weird connection bug might be easier debugged and fixed if JK would concentrate on the Mac binary.
Here's an idea. Is it possible to make the terminal automatically put in a script every 10 seonds? That way within 10 seconds of the server automatically shutting down, it will automatically start up again.