appshare: release resources when sharing session is finished
appshare: hangup the connection when xfreerdp window is closed