When handling a redirection event, we need to close the existing connection before opening the new connection.