Fix server exiting immediately.
Use a log file.