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