cancel RDP calculation when window closed
snapshot API tests