Cleanly close the connection when the cancel button is pressed

In this patch, we close cleanly the connection by initiating a close sequence in RDP. This prevent a message in mstsc saying the connection was broken.