(DynamicStdErrStreamHandler): Fixes for atexit situation