This should be logger.log(...., logger.ERROR). Throwing an exception there will bring the entire process down which is definitely not warranted if we just failed to announce.