Added logging output during cleanup