This is why my first cloud provider when I was learning VMs was Verda. They let you prepay and everything would shut down the second you ran out of money.
It was a necessary feature when I was learning. I was amazed when I moved up to the big guys and this wasn't an easy option.