Add a console command "Disconnect"

@MM1122 here’s a oldy that could help for what your looking for??

[Release] Quit Command /quit [1.2]