We need close httpserver when trigger the error: don't have 'phantomjs' installed


when i didn't install phantomjs, it will trigger the error: don't have 'phantomjs' installed, and the program exit, I think the http server should close before program exit.