Fixes #5159 `file` module: Don't catch `SystemExit`

This fixes issue #5159.