Close the app on rejected wizard. Closes bug #2905
Merge remote-tracking branch 'ivan/bug/2905_close_app_on_rejected_wizard' into develop