allowing close to be called multiple times without blockign forever and avoiding the panic when logging on a closed logger
test for double close and log after close