Added a fatalPerror function to simplify error handling.
5 files changed