File outputs were erroneously closed in outputs_check

Change-Id: I8383ad57ad66314acf8658288c481d249ed9d834