Renamed dummy class for testing.
[#1020] Renamed mock class to DummyStreamHandlerWithClose.
Reverse close order.
[#1020] Reverse close order calling when closing log handler.