Auto-reconnect if the connection goes bad during statement execution

It also re-prepares previously-prepared statements in this case
Internal commands such as BEGIN, ROLLBACK, COMMIT, DEALLOCATE are also able to reconnect
Interactive test included
Enjoy :)