Delete dependencies after dealing with them. Minor log change