Properly detect server startup