moving kill phantomjs into its own method
bumped to 3.7.0