Remove the temp file if it is empty after the request has failed