Make Database::__clone() a bit more robust using handleSessionLoss()