phantomjs cleanup