close() statement handle when commit() and rollback()