Fix W602 deprecated form of raising exception
[#38] Quickfix for cookies not being removed from CookieJar