You can’t cancel your ESTA application once it has been submitted, nor can you receive a refund. In this case, your best bet is to have a policy with one of the best travel insurance companies, which will cover your trip costs if you cancel.