cleanup phantomjs stuff