Added a message to the debug mode exception handling to show why exceptions are being printed if debug mode is on.