fix #157: use log.exception to log exceptions on errors