Add fix for confusing security warnings when phantomjs exits