protected function closeTransaction($status)
    {
        if(null !== $this->con) {
            $this->traceDebugQuery();
            if (null !== $this->con && $this->con->inTransaction()) {
                if ($status === 200) {
                    $this->con->commit();
                } else {
                    $this->con->rollBack();
                }
            }
            Propel::closeConnections();
        }
    }