How can it be unethical? You resign because of unavoidable circumstances while in vacation.In this instance,You send them email to tell your predicament.

In this case,Can I demand the gratuity due me?

thanks