finish tcp and http automata