<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi٬</div><div>We stop the socket initiator daily via below code:</div><div><br></div><div>//stop</div><div><div>if (initiator != null)</div><div>                {</div><div>                    Console.WriteLine("Shutting down FIX initiator engine");</div><div>                    logger.Debug("Shutting down FIX initiator engine");</div><div>                    initiator.Stop();</div><div>                    while (!initiator.IsStopped)</div><div>                    {</div><div>                        Thread.Sleep(2 * 1000);</div><div>                    }<span style="line-height: 1.7;">                </span></div></div><div><b>So</b><b>metimes below exception occured:</b></div><div><div>2016-10-26 22:00:06,092 [389] ERROR AlgoTrading.AlgoTrading -    at QuickFix.FileLog.DisposedCheck()</div><div>   at QuickFix.FileLog.OnEvent(String s)</div><div>   at QuickFix.Transport.SocketInitiator.SocketInitiatorThreadStart(Object socketInitiatorThread)</div><div>   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</div><div>   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)</div><div>   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)</div></div><div><br></div><div>What we expect is no event should be handled since the initator is stopped. Any idea how to prevent event from being processed since the initator is stopped? Thanks.</div><div><br></div><div>Regards</div><div>Fei</div><div><br></div><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span>