Exception appears after running any script that connects to MongoDB

It seems that every script I run that uses a MongoClient with auto_encryption_opts succeeds but ends with an exception when mongocrypt tries to close.

The exception is:
Exception ignored in: <function MongoCrypt._ del _ at 0x00000136DAFAAB00>
Traceback (most recent call last):
File “C:\git\insights\venv\lib\site-packages\pymongocrypt\mongocrypt.py”, line 296, in _ del _
File “C:\git\insights\venv\lib\site-packages\pymongocrypt\mongocrypt.py”, line 292, in close
AttributeError: ‘NoneType’ object has no attribute ‘mongocrypt_destroy’