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

This fixes issue #5159.
module(file): state what went wrong on exception
module(file): Fail instead of exit on exception
Merge pull request #5160 from JensRantil/fix-issue-5159

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