tmp fix for error/exit condition, log prefix