now properly quits when something wrong with setup.