title: Capybara / PhantomJS client died while processing
body: <p>Im randomly getting this error on CI </p>
  
  <pre><code>PhantomJS client died while processing {"name":"evaluate","args":["jQuery.active"]} (Capybara::Poltergeist::DeadClient)
  </code></pre>
  
  <p>Error is happening in this function :</p>
  
  <pre><code>def wait_for_ajax
      Timeout.timeout(Capybara.default_wait_time) do
        element = false
        until element do
          begin
            element = page.evaluate_script('jQuery.active') == 0
          end
        end
      end
    end
  </code></pre>
  
  <p>Anyone have an idea why is this randomly failing?</p>