fix a bug due to ptolemy closing tcp sessions: matlab has to open a new session for every communication