Added few error messages for logging.