Should this be more specific by just catching `SystemExit`? And do we care about recording the message `exit`?