Added an exit after the redirection.