I need to try catch because mock process.exit doesn't actually exit, so in the mock exit I throw an error, which I have to catch, it's expected.