Added optional abort when a fatal error is logged

Added a flag to ErrorLogger which causes the program to exit
immediately after logging a fatal error. It defaults to false.