Teamviewer on EC2 Instance

Hello, 

I have installed the Teamviewer server on a Windows Server on Amazon AWS EC2. I connect to the machine normally using RDP and used RDP to install TeamViewer. 

While I was able to connect from a Teamviewer client to the Server, I realised that Teamviewer ceases to run once the RDP connection is disconnected. I dont have any other way to connect to the EC2 machine other than RDP currently. 

Could you suggest some way in which I could use TeamViewer in this setup?

Thanks

Narayanan