Test that terminating the worker while it is performing synchronous file or database operations will not cause any crashes, asserts, etc.