kill phantomjs at session end