try/catch of emptycollectionexception in TCP