If a partial module fails to load, the main module may be left without files, so let's set the failed to load bit.