Added error logging with bender.