Convenience method for logging a fatal error and finally throwing an error.

This is used to stop the application from running if an error is encountered that is not recoverable.