Adds a trace when trying to finalize a stmt with already closed connection.