Add close handler support to OptiqConnection for resource cleanup.

Adds a ConnectionCloseHandler so that java.sql.Connection.close() also releases other resources.