Close the app on rejected wizard. Closes bug #2905.