[code:eng] Fixed a crash caused by main being called when Load is called.
Added minidump generation.