Flush stderr after printing exception in the default error handler.