Add support for stopping logging