Delete narrator instance before exiting tests

Tests may sometimes fail due to a double free in the logging framework.
However, if we stop the narrator thread by deleting the instance before
exiting, we avoid a double free and tests will pass each and every time.