PYTHON-525 Try to halt monitors before exiting.