Preventing some ugly server errors.