`file` module: Don't catch `SystemExit`

This fixes issue #5159.