update the socket exercise to avoid an error raised due to interaction flow.