Keyboard interrupts and system exits are now properly handled during the test collection.