flush standard output and standard error when reporting bug

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>