Update.
When socket disconnect, remove all orders, and improve the code on exit.