I am aware of the side effect of ".close()".

One handler will be used in a single logger.

For now we also want to close the handler. The test should check that handlers are closed.