- Fixed possible fd leak on pe_load() when an error happens

Added some missing close() calls.