Fixed bug - Reenabling transaction when GlobalPlugin is ignoring internal transactions

And added some debug logging.