fix it to write failures to stderr right away

instead of lingering around. also has good benefit of putting
debug cerr writes inline with failure lines