[Core] In BuildTool, dispose the project after building

Show fix bug #12676 - ObjectDisposedException in ReusableTcpClient.IsAlive
getter