Some minor cleaning up [ci skip].
Improved our file manager by handling the case of file not being readable anymore.