Added some pseudo-code for disconnecting

Note: I have NOT tested this in any way, as I wrote this on my windows-machine. So I don't know for sure if it works/is correct.