Yes, the log confirms that it indeed crashes after closing a trade. Very strange. Unfortunately I don't see the crash reason in the diag text. So let's first check if it's related to your script, or to something else. Please run the following script:
function run()
{
BarPeriod = 1;
asset("EUR/USD");
Verbose = 14;
Stop = TakeProfit = 5*PIP;
if(random() > 0) enterLong();
else enterShort();
}
Trade this script with your MT4. It will open or close a trade every minute. Let me know if this crashes also.