Ensure that Doctrine1 module opens/closes transaction on same connection

Because for some weird reason in my case it was failing to rollback the transaction, claiming that there was no transaction to begin with. But it was.