Work around a 'multiprocessing' module issue which causes errors at the end of testing.