set a timeout of 10 seconds then log the error and email it.