Removed the internal ExceptionHandling method (which only printed the error to stdout) and replaced it with logging.