Trouble, lost connection causes close order

 
Hi: I'am new using the program (Mt4) and iam currently using it in demo mode to practice. The point is that i have this problem, what i thinks it is a big deal, at some random moment the program connection seem to stop (even when my web browser connection is doing fine) and a few seconds later it reconnect, but some of my orders are automatically closed before time or sell/buy limits, etc, leaving me with an undesired profit. These are instant execution orders. I dont know if iam doing something wrong or if it is the program. Could someone give a hint on this pls ?
 
Generally lost connection does Not cause orders to close. If you're using an Expert Advisor/Contentious Scripts, then check the codes.
Reason: