Made testing server startup more robust -- check output of log file
for possible failure, and shutdown the server after tests are done.