Add unit tests to simulate process interruptions.