title: How to remove dead handles
body: <p>I am developing an API client in R. I need to test the HTTP calls from time to time. But each time I build and install, and make a request afterwards, I get the following error:</p>
  <pre><code> Error in curl::handle_setopt(opts$url$handle, .list = opts$options) : 
    handle is dead
  </code></pre>
  <p>I am not using <a href="https://github.com/jeroen/curl" rel="nofollow noreferrer">curl</a> directly, the requests are made through <a href="https://cran.r-project.org/web/packages/crul/" rel="nofollow noreferrer">crul</a>. So I did not create the dead handle, otherwise I would try to reset it using <code>curl::handle_reset()</code> or something similar.</p>
  <p>My current fix is to restart my R session, which works well but is highly annoying. Is there a better way to make the dead handle go away?</p>