Add exit to error redirection