Terminate MainActivity entity and repository.