Added more verbose error logging with a bad window case.