CloseTask and DatabaseManager created