Added logging to file & messagebox on fatal error