Better Error Checking for Server Main