Changed out page.set event handlers to prevent phantomjs seg faulting.