Cancel pending promises when explicitly closing connection
Move logging into worker function

to show the statements when they are actually processed
Better support for interaction with non-transacted connections