This method is called when TWS closes the sockets connection, or when TWS is shut down.
void connectionClosed()