/**
Close the database.
*/
void CPplContactsFile::Close(TBool aNotify)
	{	 		
  	iDatabase.Close(); 
  	iFileIsOpen = EFalse;
  
  	REComSession::FinalClose(); // This line is necessary to make sure the plug-in is unloaded properly
  	iLocalFs.Close(); //we now use a local File Session	
	
	iIccContactStore.Close();
	
	TRAP_IGNORE(CloseTablesL(aNotify) ); // CloseTablesL() cannot leave anyway but still 
										 // trap in case implementation changes later
	}
/**
Close the database.
*/
void CPplContactsFile::Close(TBool aNotify)
{
    // Close the resource which depends on iDatabase before it will be closed.
    for (TInt i = 0; i < iSqlDatabaseObservers.Count(); i++ )
    {
        iSqlDatabaseObservers[i]->OnCloseL();
    }

    iDatabase.Close();
    iFileIsOpen = EFalse;

    REComSession::FinalClose(); // This line is necessary to make sure the plug-in is unloaded properly
    iLocalFs.Close(); //we now use a local File Session

    iIccContactStore.Close();

    TRAP_IGNORE(CloseTablesL(aNotify) ); // CloseTablesL() cannot leave anyway but still
    // trap in case implementation changes later
}