Oops... dropped debug print
Fixed tpc_recover() with non-dbapi connections
Close the connection after error in green callback
Handle more carefully the cancel key to avoid memory leaks
Handle the connection.closed values as in psycopg2

Mark the connection as "closed but requiring cleanup" on critical errors
Check the connection state inside the commit critical section

Avoid race conditions with concurrent commits (psycopg ticket #103)

And with this, the entire psycopg 2.5 test suite passes
(no green, postgres 9.1)
Better implementation of rollback

Wrap everything in a critical section and set the
proper status in case of error.
Fixed some logic in exceptions raising