As far as I can tell it impossible to test as previously written. `handleFatal` gets its `$error` from `get_last_error` and there is no way that I know of to inject this dependency from the outside.

I added `handleFatalError` to split the code and allow for testing of the functionality after the error has been retrieved from `get_last_error`.

`handleFatalError` is currently implemented as a `public` method because I wanted to test it easily. I would have preferred this to be a private or protected method but it would have required me to hack the visibility in the test and I thought this was easier to get the conversations tarted.

I'm not super good at testing these kinds of things so other suggestions are more than welcome! The problem I see right now is that `handleFatal` relies on `get_last_error` and I don't know to inject something there short of what I've already done.