avoid double error on timeout