Replaced erlang:error on erlang:exit in tcp_closed handler.